<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
console.log(`update time:${document.lastModified}`)
export default {
  name:'app',
  data(){
    return {

    }
  },
  mounted(){
    // 在页面刷新时将vuex里的信息保存到sessionStorage里
    window.addEventListener('beforeunload',()=>{
      let vuexState = JSON.stringify(this.$store.state)
      sessionStorage.setItem('vuexState',vuexState)
      // e.returnValue = '好像改变不了文字提示'
    })
  },
  components:{

  },
  methods:{

  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
  background-color: #f5f7f9;
  position: relative;
  min-width: 1280px; /*暂定最小宽度*/
  overflow-x: hidden;
}
.el-pagination{
  z-index: 999;
  padding: 20px 0 !important;
  width: 100%;
  background: #e9eef3;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}
</style>
